home *** CD-ROM | disk | FTP | other *** search
- property meSprite, moveAmount, zeroMMV, water
- global gmObject, sndObject
-
- on beginSprite me
- zeroMMV = 0
- moveAmount = 38
- meSprite = sprite(me.spriteNum)
- water = gmObject.water
- gmObject.pippi = meSprite
- end
-
- on mouseDown me
- if the frameLabel = "main" then
- if the keyDownScript <> EMPTY then
- set the keyDownScript to EMPTY
- set the keyUpScript to EMPTY
- end if
- if water.frame = 1 then
- if meSprite.member.name <> "0" then
- meSprite.stop()
- updateStage()
- end if
- end if
- stopEvent()
- else
- if the frameLabel = "interLeave" then
- if soundBusy(2) = 0 then
- gmObject.recoverTA()
- go("main")
- end if
- end if
- end if
- end
-
- on mouseDownOutOf me
- if the frameLabel = "main" then
- if the keyDownScript <> EMPTY then
- set the keyDownScript to EMPTY
- set the keyUpScript to EMPTY
- end if
- if meSprite.member.name <> "0" then
- meSprite.stop()
- moveMe(me)
- meSprite.member = member("0", 1)
- zeroMMV = 1
- updateStage()
- end if
- end if
- end
-
- on keyDownX me
- if the frameLabel = "main" then
- if water.frame = 1 then
- if meSprite.member.name <> "0" then
- meSprite.stop()
- updateStage()
- end if
- end if
- end if
- end
-
- on mouseUp me
- if the frameLabel = "main" then
- if water.frame = 1 then
- meSprite.play()
- end if
- stopEvent()
- end if
- end
-
- on mouseUpOutOf me
- if the frameLabel = "main" then
- meSprite.play()
- end if
- end
-
- on keyUpX me
- if the frameLabel = "main" then
- if water.frame = 1 then
- meSprite.play()
- end if
- end if
- end
-
- on exitFrame me
- if the frameLabel = "main" then
- if (meSprite.frame = 4) and (meSprite.member.name = "0") then
- water.loc = point(meSprite.locH, 297)
- water.frame = 1
- water.play()
- sndObject.respondSnd(4, 2, 1, 1)
- updateStage()
- else
- if (zeroMMV = 1) and (meSprite.frame = meSprite.member.frameCount) then
- zeroMMV = 0
- end if
- end if
- moveMe(me)
- end if
- end
-
- on moveMe me
- if (meSprite.member.name = "-1") and (meSprite.playing = 0) then
- meSprite.member = member("0", 1)
- meSprite.loc = meSprite.loc - point(moveAmount, 0)
- updateStage()
- else
- if (meSprite.member.name = "1") and (meSprite.playing = 0) then
- meSprite.loc = meSprite.loc + point(moveAmount, 0)
- meSprite.member = member("0", 1)
- updateStage()
- end if
- end if
- end
-
- on mouseEnter me
- cursor([500, 501])
- end
-
- on mouseLeave me
- cursor(0)
- end
-
- on endSprite me
- cursor(0)
- end
-